#include "e2d/core/impl/Prefeb.h"
#include "e2d/core/impl/components.h"
#include "e2d/core/Entity.h"

void e2d::Prefeb::OnLoad()
{
	m_SourceEntity.LoadFromScene(m_Entity->m_Scene);

	m_PrefebMap.Load();
}

void e2d::Prefeb::OnStart()
{
}

void e2d::Prefeb::OnUpdate()
{
}

void e2d::Prefeb::OnUpdateRuntime()
{
}

void e2d::Prefeb::OnDestroy()
{
}

void e2d::Prefeb::LoadSource()
{
	//if (m_SourceEntity)
	//{
	//	ztclog::info("load prefeb source from");
	//	e2d::Components::CopyEntity(this->m_SourceEntity.m_Entity, this->m_Entity);
	//}

}

void e2d::Prefeb::UpdateSource()
{
	//if (m_SourceEntity)
	//{
	//	e2d::Components::CopyEntity(this->m_Entity, this->m_SourceEntity.m_Entity);
	//}
}
